import * as actionTypes from './constants'
import { fromJS } from 'immutable'

export const changeItemDisplayTrue = (id) => ({
  type: actionTypes.CHANGE_ITEM_DISPLAY_TRUE,
  id: fromJS(id)
});

export const changeItemDisplayFalse = (id) => ({
  type: actionTypes.CHANGE_ITEM_DISPLAY_FALSE,
  id: fromJS(id)
}); 

export const like = (id, count) => ({
  type: actionTypes.CHANGE_LIKE_COUNT,
  id: fromJS(id)
}); 

// export const addCount = (count) => ({
//   type: actionTypes.CHANGE_DEMO_COUNT,
//   count: fromJS(count)
// }); 